package com.example.array.unit4.example3;

import java.util.Arrays;
import java.util.Collections;

/**
 * @author ASUS
 */
public class RunoobTest {

    static void reverse(Integer[] a) {
        Collections.reverse(Arrays.asList(a));
        System.out.println(Arrays.asList(a));
    }

    public static void main(String[] args) {
        Integer[] arr = {10, 20, 30, 40, 50};
        reverse(arr);
    }
}